package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 工艺路线
 * </p>
 *
 * @author 小啊刚
 * @since 2020-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mab_process_route")
@ApiModel(value="ErpProcessRoute对象", description="工艺路线")
public class ErpProcessRoute extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "工艺编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "工艺名称")
    @TableField("name")
    private String name;

//    @ApiModelProperty(value = "物料id")
//    @TableField("inventory_id")
//    private Integer inventoryId;
//
//    @ApiModelProperty(value = "物料编码")
//    @TableField("inventory_code")
//    private String inventoryCode;
//
//    @ApiModelProperty(value = "物料名称 ")
//    @TableField("inventory_name")
//    private String inventoryName;

    @ApiModelProperty(value = "规格型号")
    @TableField("inventory_specification")
    private String inventorySpecification;

    @ApiModelProperty(value = "计量单位id")
    @TableField("unit_id")
    private Integer unitId;

    @ApiModelProperty(value = "计量单位名称")
    @TableField("unit_name")
    private String unitName;

    @ApiModelProperty(value = "生产类型")
    @TableField("production_type")
    private Integer productionType;

    @ApiModelProperty(value = "版本号")
    @TableField("version_code")
    private String versionCode;

    @ApiModelProperty(value = "失效日期")
    @TableField("invalid_date")
    private String invalidDate;

    @ApiModelProperty(value = "状态1:正常 0停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "审核状态1:已审 0:未审")
    @TableField("examine_status")
    private Integer examineStatus;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "搜索关键字")
    @TableField(exist = false)
    private String searchKey;

    @ApiModelProperty(value = "工艺明细")
    @TableField(exist = false)
    private List<ErpProcessRouteDetail> processRouteDetails;
}
